package com.fm.mediasoup;

import android.content.Context;
import android.os.Build;

import androidx.annotation.RequiresApi;

import com.fm.mediasoup.sdpTransform.Sdp;
import com.fm.mediasoup.callback.CallbackMediaStream;


import org.webrtc.EglBase;
import org.webrtc.SurfaceTextureHelper;
import org.webrtc.SurfaceViewRenderer;

@RequiresApi(api = Build.VERSION_CODES.O)
public class Device{

//    private MediasoupPeerConnection sendMediasoupPeerConnection;

    private Sdp sdp;
    private Context context;
    private SurfaceTextureHelper surfaceTextureHelper;
    private EglBase.Context eglBaseContext;
    private SurfaceViewRenderer svrLocal;
//    private CallbackMediaStream callbackMediaStream;
//    private WebSocketUtil websocket;
//    private MediasoupPeerConnection reveMediasoupPeerConnection;


    public Device(Context context, SurfaceTextureHelper surfaceTextureHelper, EglBase.Context eglBaseContext, SurfaceViewRenderer svrLocal, CallbackMediaStream callbackMediaStream) {
        this.context = context;
        this.surfaceTextureHelper = surfaceTextureHelper;
        this.eglBaseContext = eglBaseContext;
        this.svrLocal = svrLocal;
//        this.callbackMediaStream = callbackMediaStream;
//        websocket = new WebSocketUtil();
//
//        sendMediasoupPeerConnection = new MediasoupPeerConnection(context, surfaceTextureHelper, eglBaseContext, svrLocal,  this.callbackMediaStream);
//        reveMediasoupPeerConnection = new MediasoupPeerConnection(context, surfaceTextureHelper, eglBaseContext, svrLocal,  callbackMediaStream);
//        websocket.open(sendMediasoupPeerConnection, reveMediasoupPeerConnection);
    }




}
